package wsepForum.common.elements;


public class SearchResult {

	private int id;
	private Message message;
	private double score;
	
	public SearchResult(int id, double score) {
		this.id = id;
		this.message = null;
		this.score = score;
	}
	
	public SearchResult(int id) {
		this(id, 0);
	}

	public void setMessage(Message message) {
		this.message = message;
	}
	
	public int getMessageID() {
		return id;
	}

	public Message getMessage() {
		return message;
	}

	public double getScore() {
		return score;
	}
	
}
